<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <script src="http://leoner.tianji.com/dojo/dojo.js"></script>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <script type="text/javascript">
        dojo.require("dojox.data.JsonRestStore")
        dojo.require("dojox.grid.DataGrid")
        var jrs = dojox.data.JsonRestStore;
        dojo.addOnLoad(function(){
            var poStore = new jrs({target:"/PO"});
            // create a layout
            gridLayout = [
                    { name: 'Ship To Address', field: 'shipToAddress'},
                    { name: 'Active', field: 'active'}];
                // create the grid and connect it to the store
                var grid = new dojox.grid.DataGrid({
                    store: poStore,
                    structure: gridLayout
                }, dojo.byId("gridElement"));
                grid.setQuery("?active=true")
                grid.startup();
              
        });
        </script>
       
        <div id="gridElement"></div>
    </body>
</html>
